package com.own.business.log.login.persistence.entity.query;

import com.own.component.elastic.entity.BaseElasticQuery;
import com.own.constant.ConstantBeanSuffix;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;
import lombok.ToString;
import lombok.experimental.Accessors;

import java.io.Serializable;

/**
 * LogLoginQuery
 *
 * @author chenxueli
 * @date 2023-08-08 17:14:57
 */
@Schema(title = "登录日志持久化" + ConstantBeanSuffix.QUERY)
@Getter
@Setter
@ToString
@Accessors(chain = true)
@AllArgsConstructor
@NoArgsConstructor
public class LogLoginQuery extends BaseElasticQuery implements Serializable {

    @Schema(title = "登录账号")
    private String loginAccount;

    @Schema(title = "登录类型")
    private String loginType;

    @Schema(title = "登录编码")
    private String loginCode;

    @Schema(title = "用户id")
    private Long userId;

    @Schema(title = "用户名")
    private String userName;

    @Schema(title = "ip地址")
    private String ip;

    @Schema(title = "客户端")
    private String client;

    @Schema(title = "token")
    private String token;

    @Schema(title = "操作内容")
    private String extra;

    @Schema(title = "登录状态 1=成功 2=失败")
    private Integer status;

    @Schema(title = "链路id")
    private String traceId;

    @Schema(title = "请求时间(start)")
    private String loginTimeStart;

    @Schema(title = "请求时间(end)")
    private String loginTimeEnd;

    @Schema(title = "设备id")
    private String deviceId;

}
